# -*- coding: utf-8 -*-
#coding=utf-8

from action.user.base import userAction
from model.album import album

class indexAction(userAction):
    def __init__(self):
        userAction.__init__(self)

    def GET(self):
        return self.index()

    def index(self):
        condition = {}
        albumList = album().getList('*', condition)
        
        self.privData['ALBUM_LIST'] = {}
        for item in albumList:
            self.privData['ALBUM_LIST'][item['id']] = item['name']

        return self.display('upload')

